package com.zhida.chatservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.zhida.chatservice.entity.UserMessage;
import com.zhida.common.entity.Result;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ling
 * @since 2024-07-19
 */
@Service
public interface IMessageService extends IService<UserMessage> {

    Result<?> backupUserMessage();

    Result<?> getMessage(String to,Integer current, Integer pageSize);

    Result<?> backupGroupMessage();

    Result<?> getOfflineMsg() throws JsonProcessingException;
}
